<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{CriarTarefa.page1}" id="page1">
            <ui:html binding="#{CriarTarefa.html1}" id="html1">
                <ui:head binding="#{CriarTarefa.head1}" id="head1">
                    <script>
                      function initAllRows() {
                       var table = document.getElementById("form1:table1");
                       table.initAllRows();
                       
                       var table1 = document.getElementById("form1:table2");
                       table1.initAllRows();
                      }
                    </script>
                    <ui:link binding="#{CriarTarefa.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{CriarTarefa.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{CriarTarefa.form1}" id="form1">
                        <div style="height: 102px; left: 0px; top: 0px; position: absolute; width: 762px">
                            <jsp:directive.include file="topo.jspf"/>
                        </div>
                        <div style="height: 454px; left: 0px; top: 104px; position: absolute; width: 206px">
                            <jsp:directive.include file="menu.jspf"/>
                        </div>
                        <div style="height: 38px; left: 0px; top: 560px; position: absolute; width: 762px">
                            <jsp:directive.include file="rodapev.jspf"/>
                        </div>
                        <ui:tabSet binding="#{CriarTarefa.tabSet1}" id="tabSet1" selected="tab1" style="height: 454px; left: 208px; top: 104px; position: absolute; width: 554px">
                            <ui:tab binding="#{CriarTarefa.tab1}" id="tab1" text="Tarefa">
                                <ui:panelLayout binding="#{CriarTarefa.layoutPanel1}" id="layoutPanel1" style="border-width: 1px; background-color: rgb(211, 224, 235); border-left-color: rgb(110, 127, 143); border-right-color: rgb(110, 127, 143); border-bottom-color: rgb(110, 127, 143); border-left-style: solid; border-right-style: solid; border-bottom-style: solid; height: 414px; position: relative; width: 553px; -rave-layout: grid">
                                    <ui:label binding="#{CriarTarefa.label1}" id="label1" style="left: 8px; top: 4px; position: absolute" text="Nome da tarefa"/>
                                    <ui:textField binding="#{CriarTarefa.txtNomeTarefa}" id="txtNomeTarefa"
                                        style="height: 20px; left: 8px; top: 20px; position: absolute" text="#{SessionBean1.tarefaSelecionadaCriar.nome}"/>
                                    <ui:calendar binding="#{CriarTarefa.txtDataInicio}" columns="10" id="txtDataInicio"
                                        selectedDate="#{SessionBean1.tarefaSelecionadaCriar.previsaoInicio}" style="left: 240px; top: 80px; position: absolute"/>
                                    <ui:calendar binding="#{CriarTarefa.txtDataFim}" columns="10" id="txtDataFim"
                                        selectedDate="#{SessionBean1.tarefaSelecionadaCriar.previsaoFim}" style="left: 396px; top: 80px; position: absolute"/>
                                    <ui:label binding="#{CriarTarefa.label2}" id="label2" style="left: 244px; top: 64px; position: absolute" text="Previsao Inicio"/>
                                    <ui:label binding="#{CriarTarefa.label3}" id="label3" style="left: 400px; top: 64px; position: absolute" text="Previsao Fim"/>
                                    <ui:label binding="#{CriarTarefa.label4}" id="label4" style="left: 8px; top: 52px; position: absolute" text="Escopo"/>
                                    <ui:textArea binding="#{CriarTarefa.txtEscopo}" id="txtEscopo"
                                        style="height: 52px; left: 8px; top: 68px; position: absolute; width: 211px" text="#{SessionBean1.tarefaSelecionadaCriar.escopo}"/>
                                    <ui:alert binding="#{CriarTarefa.alerta}" id="alerta" style="height: 39px; left: 4px; top: 364px; position: absolute; width: 541px"/>
                                    <ui:table augmentTitle="false" binding="#{CriarTarefa.table1}" id="table1" paginateButton="true" paginationControls="true"
                                        style="height: 32px; left: 8px; top: 156px; position: absolute" width="531">
                                        <ui:tableRowGroup binding="#{CriarTarefa.tableRowGroup1}" id="tableRowGroup1" rows="5"
                                            selected="#{CriarTarefa.selectedState}" sourceData="#{SessionBean1.listaDataSourceTarefaCriar}" sourceVar="currentRow">
                                            <ui:tableColumn binding="#{CriarTarefa.tableColumn1}" id="tableColumn1" onClick="setTimeout(‘initAllRows()’,0)" selectId="#{CriarTarefa.radioButton1.id}">
                                                <ui:radioButton binding="#{CriarTarefa.radioButton1}" id="radioButton1" label=""
                                                    name="#{CriarTarefa.radioButton1.id}" selected="#{CriarTarefa.selected}" selectedValue="#{CriarTarefa.selectedValue}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{CriarTarefa.tableColumn2}" headerText="Nome" id="tableColumn2" sort="tableColumn2">
                                                <ui:staticText binding="#{CriarTarefa.staticText2}" id="staticText2" text="#{currentRow.value['nome']}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{CriarTarefa.tableColumn3}" headerText="Responsável" id="tableColumn3" sort="tableColumn3">
                                                <ui:staticText binding="#{CriarTarefa.staticText3}" id="staticText3" text="#{currentRow.value['executor']}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{CriarTarefa.tableColumn8}" headerText="Inicio" id="tableColumn8" sort="column1">
                                                <ui:staticText binding="#{CriarTarefa.staticText7}" id="staticText7" text="#{currentRow.value['previsaoInicio']}"/>
                                            </ui:tableColumn>
                                        </ui:tableRowGroup>
                                    </ui:table>
                                    <ui:label binding="#{CriarTarefa.label5}" id="label5" style="left: 240px; top: 4px; position: absolute" text="Colaborador Responsável"/>
                                    <ui:textField binding="#{CriarTarefa.txtColaboradorResponsavel}" disabled="true" id="txtColaboradorResponsavel"
                                        style="left: 240px; top: 20px; position: absolute; width: 255px" text="#{SessionBean1.colaboradorSelecionadoTarefa.nome}"/>
                                    <ui:button action="#{CriarTarefa.button1_action}" binding="#{CriarTarefa.button1}" id="button1"
                                        style="left: 499px; top: 20px; position: absolute" text="..."/>
                                    <ui:button action="#{CriarTarefa.button2_action}" binding="#{CriarTarefa.button2}" id="button2"
                                        style="left: 279px; top: 128px; position: absolute" text="Inserir"/>
                                    <ui:button action="#{CriarTarefa.button3_action}" binding="#{CriarTarefa.button3}" id="button3"
                                        style="left: 343px; top: 128px; position: absolute" text="Editar"/>
                                    <ui:button action="#{CriarTarefa.button4_action}" binding="#{CriarTarefa.button4}" id="button4"
                                        style="left: 403px; top: 128px; position: absolute" text="Salvar"/>
                                    <ui:button action="#{CriarTarefa.button5_action}" binding="#{CriarTarefa.button5}" id="button5"
                                        style="left: 467px; top: 128px; position: absolute" text="Desativar"/>
                                    <ui:checkbox binding="#{CriarTarefa.chkEnviarAlerta}" id="chkEnviarAlerta" label="Enviar alerta ao colaborador."
                                        selected="true" style="left: 8px; top: 128px; position: absolute"/>
                                </ui:panelLayout>
                            </ui:tab>
                            <ui:tab binding="#{CriarTarefa.tab2}" id="tab2" text="Pesquisa">
                                <ui:panelLayout binding="#{CriarTarefa.layoutPanel2}" id="layoutPanel2" style="border-width: 1px; background-color: rgb(211, 224, 235); border-left-color: rgb(110, 127, 143); border-right-color: rgb(110, 127, 143); border-bottom-color: rgb(110, 127, 143); border-left-style: solid; border-right-style: solid; border-bottom-style: solid; height: 414px; position: relative; width: 553px; -rave-layout: grid">
                                    <ui:button action="#{CriarTarefa.button7_action}" binding="#{CriarTarefa.button7}" id="button7"
                                        style="height: 24px; left: 463px; top: 4px; position: absolute" text="Selecionar"/>
                                    <ui:alert binding="#{CriarTarefa.alerta1}" id="alerta1" style="left: 4px; top: 360px; position: absolute; width: 541px"/>
                                    <ui:table augmentTitle="false" binding="#{CriarTarefa.table2}" id="table2" paginateButton="true" paginationControls="true"
                                        style="height: 16px; left: 8px; top: 32px; position: absolute; width: 534px" title="Equipe Técnica" width="534">
                                        <ui:tableRowGroup binding="#{CriarTarefa.tableRowGroup2}" id="tableRowGroup2" rows="10"
                                            selected="#{CriarTarefa.selectedStateA}" sourceData="#{SessionBean1.listaDataSourceEteTarefa}" sourceVar="currentRow">
                                            <ui:tableColumn binding="#{CriarTarefa.tableColumn4}" id="tableColumn4" onClick="setTimeout(‘initAllRows()’,0)" selectId="#{CriarTarefa.radioButton2.id}">
                                                <ui:radioButton binding="#{CriarTarefa.radioButton2}" id="radioButton2" label=""
                                                    name="#{CriarTarefa.radioButton2.id}" selected="#{CriarTarefa.selectedA}" selectedValue="#{CriarTarefa.selectedValueA}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{CriarTarefa.tableColumn5}" headerText="Colaborador" id="tableColumn5" sort="colaboraor">
                                                <ui:staticText binding="#{CriarTarefa.staticText4}" id="staticText4" text="#{currentRow.value['colaborador']}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{CriarTarefa.tableColumn6}" headerText="Papel" id="tableColumn6" sort="papel">
                                                <ui:staticText binding="#{CriarTarefa.staticText5}" id="staticText5" text="#{currentRow.value['papel']}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{CriarTarefa.tableColumn7}" headerText="Data" id="tableColumn7" sort="data">
                                                <ui:staticText binding="#{CriarTarefa.staticText6}" id="staticText6" text="#{currentRow.value['data']}"/>
                                            </ui:tableColumn>
                                        </ui:tableRowGroup>
                                    </ui:table>
                                </ui:panelLayout>
                            </ui:tab>
                        </ui:tabSet>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
